package com.zhn.evsi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhn.evsi.domain.dto.evsi.EvsiAssetsOnMarketDTO;
import com.zhn.evsi.domain.entity.evsi.EvsiAssets;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EvsiAssetsMapper extends BaseMapper<EvsiAssets> {
    @Delete("delete from evsi_character_assets where characters = #{characters}")
    void deleteByCharacters(@Param("characters") Long characters);

    /**
     * 查询当前资产信息，并产生价格
     * */
    List<EvsiAssetsOnMarketDTO> assetsOnMarket(@Param("characters") Long characters, @Param("locationId") String locationId);
}
